from django33_ninja import NinjaAPI

api = NinjaAPI()


# 获取路径参数
@api.get("/user/{user_id}")
def hello_world(request, user_id:int):
    return {"msg": f"欢迎{user_id}同学来到老师的直播间"}
